<template>
    <div>
        <TopNav title="我的收藏"/>
        <div class="list">
            <PostItem
                v-for="post in postList"
                :key="post.id"
                :postData="post"
            />
        </div>
    </div>
</template>

<script>
    import TopNav from '../../components/TopNav'
    import PostItem from '../../components/PostItem'
    export default {
        data() {
            return {
                postList: []
            }
        },
        components: {
            TopNav,
            PostItem
        },
        created() {
            this.$axios({
                url: "/user_star"
            }).then(res=>{
                console.log(res.data);
                this.postList = res.data.data
            })
        }
    }
</script>

<style>
</style>